/****** Object:  Stored Procedure [dbo].spChiTietBienBanKiemKeKhoGetList Script Date: 7/16/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spChiTietBienBanKiemKeKhoGetList]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spChiTietBienBanKiemKeKhoGetList]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		17/07/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spChiTietBienBanKiemKeKhoGetList]

WITH ENCRYPTION
AS

SELECT
	[tbl_ChiTietBienBanKiemKeKho].*,
	tbl_LuuKho.SoLo,
	tbl_LuuKho.MaThuoc
FROM [tbl_ChiTietBienBanKiemKeKho] INNER JOIN tbl_LuuKho ON tbl_LuuKho.maLuuKho=[tbl_ChiTietBienBanKiemKeKho].MaLuuKho

GO

--GRANT EXECUTE ON [dbo].[spChiTietBienBanKiemKeKhoGetList] TO [sa]
--GO
